﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace dpdw.Behaviour.StatePattern
{
    /// <summary>
    /// 无25分钱
    /// </summary>
    public class NoQuarterState : IState
    {
        private GumballMachine gumballMachine;

        public NoQuarterState(GumballMachine gumballMachine)
        {
            this.gumballMachine = gumballMachine;
        }

        public void InsertQuarter()
        {
            System.Diagnostics.Trace.WriteLine("NoQuarterState" + " " + "InsertQuarter");
        }

        public void EjectQuarter()
        {
            System.Diagnostics.Trace.WriteLine("NoQuarterState" + " " + "EjectQuarter");
        }

        public void TurnCrank()
        {
            System.Diagnostics.Trace.WriteLine("NoQuarterState" + " " + "TurnCrank");
        }

        public void Dispense()
        {
            System.Diagnostics.Trace.WriteLine("NoQuarterState" + " " + "Dispense");
        }
    }
}
